package com.pejusdas.sandbox;

public class AppendPrepend {
	
	private String name = null;

	public String appendName(String append) {
		name += append;
		return name;
	}

	public String prependName(String prepend) {
		name = prepend + name;
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public static void main(String... args) {

		AppendPrepend at = new AppendPrepend();
		at.setName(" M. ");
		System.out.println(at.prependName("Pejus"));
		System.out.println(at.appendName("Das"));
	}
}
